//用户消费信息类
public class UserConsumeInfo {
    private int consumeCallDuration;       //成员变量：统计通话时长
    private int consumeNetworkData;        //成员变量：统计上网流量
    private int consumeValue;              //成员变量：统计每月消费金额
    //提供共有的get和set方法
    public int getConsumeCallDuration() {
        return consumeCallDuration;
    }

    public void setConsumeCallDuration(int consumeCallDuration) {
        this.consumeCallDuration = consumeCallDuration;
    }

    public int getConsumeNetworkData() {
        return consumeNetworkData;
    }

    public void setConsumeNetworkData(int consumeNetworkData) {
        this.consumeNetworkData = consumeNetworkData;
    }

    public int getConsumeValue() {
        return consumeValue;
    }

    public void setConsumeValue(int consumeValue) {
        this.consumeValue = consumeValue;
    }
    public void showInfo() {
        System.out.println("消费情况：您已通话 "+consumeCallDuration+"分钟；流量使用"+consumeNetworkData+"GB;合计消费"+consumeValue+"元。");
    }
}
